/**
 *
 */
package com.hexacta.hrs.services.staffing.impl.predicates;

import org.apache.commons.collections.Predicate;

import com.hexacta.hrs.domain.staffing.assignment.AvailabilityStatus;
import com.hexacta.hrs.domain.staffing.assignment.EmployeeAssignment;

/**
 * @author ldeveikis
 *
 */
public class NoAsignadoPredicate implements Predicate {

	/*
	 * (non-Javadoc)
	 *
	 * @see org.apache.commons.collections.Predicate#evaluate(java.lang.Object)
	 */
	@Override
	public boolean evaluate(Object object) {
		return ((object instanceof EmployeeAssignment) && ((EmployeeAssignment) object)
				.getAvailabilityStatus().equals(AvailabilityStatus.NoAsignado));
	}

}
